package spring.cloud.nacos.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Data
@Component
@RefreshScope
public class NacosConfig implements Serializable {

    @Value("${the.age:9}")
    private int age;

    @Value("${the.name:nacos}")
    private String name;

}
